package com.sc.nft.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
@Data
public class UserConsignmentCollectionPriceVO {
    @ApiModelProperty("到手的钱")
    private String price;

    @ApiModelProperty("手续费")
    private String charge;

    @ApiModelProperty("上链费")
    private String gas;
    public void setCharge(BigDecimal charge) {
        this.charge = charge.setScale(2, BigDecimal.ROUND_DOWN).toPlainString();
    }
    public void setGas(BigDecimal gas) {
        this.gas = gas.setScale(2, BigDecimal.ROUND_DOWN).toPlainString();
        ;
    }
    public void setPrice(BigDecimal price) {
        this.price = price.setScale(2, BigDecimal.ROUND_DOWN).toPlainString();
    }
}
